﻿@{
    ViewBag.Title = "ViewPage1";
    Layout = "~/Views/Shared/BaseView.cshtml";
}
﻿@model Benefit.ViewModel.Day.GroupShow
<script type="text/javascript">
    function showdiv3() {
        if (document.getElementById("table3").style.display == "block") {
            document.getElementById("table3").style.display = "none";
        } else {
            document.getElementById("table3").style.display = "block";
        }

    }
</script>
<dl id="xiangmu">
    <dt><span id="title2">@Model.Group.GroupName</span></dt>
    <dd>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" id="group">
            <tr>
                <td class="selected">
                    <img src="/Content/images/icon_07.gif" />盘中统计
                </td>
                <td>
                    <a href="/GroupCompare/Index/@Model.Group.Id/@Model.GroupQueryDate">
                        <img src="/Content/images/icon_02.gif" />信息汇总</a>
                </td>
                <td>
                    <a href="/GroupXingNeng/Index/@Model.Group.Id/@Model.GroupQueryDate">
                        <img src="/Content/images/icon_02.gif" />历史数据</a>
                </td>
            </tr>
        </table>
    </dd>
</dl>
<div id="bigDataBox">
    <span style="width: 50%;">数据统计时间：<input type="text" id="key" class="Wdate" onclick="WdatePicker()"
        name="key" value="@Model.HPdate" /><span style="padding-left: 24px;"><span style="cursor: pointer;"><input
            type="button" value="查看" style="font-size: 9pt; width: 60px; height: 22px;" id="changedate" /></span></span></span>
    <div style="height: 15px; line-height: 15px;">
    </div>
    <table style="width: 100%; height: 330px;">
        <tr>
            <td style="width: 70%; vertical-align: top;">
                <div style="width: 100%; height: 320px;" id="showflash">
                </div>
            </td>
            <td style="vertical-align: top;">
                <div style="width: 100%; height: 320px;" id="showflash2">
                </div>
            </td>
        </tr>
    </table>
    <div style="height: 5px; line-height: 5px;">
    </div>
    <div style="width: 60%; background-repeat: no-repeat; float: left; text-align: left;">
        <img src="/content/images/shouyigaikuang.png" />
    </div>
    <div id="DateSelectBar" class="date-select-bar" style="float: right;">
        <a href="#00" class='cur' onclick="changediv(1)">按基金管理人</a>
    </div>
    <table cellspacing="0" cellpadding="0" class="list" style="width: 100%;" id="table1">
        <tr>
            <td class="title" style="text-align: left; padding-left: 10px;">
                姓名
            </td>
            <td class="title" style="text-align: right;">
                风险次数
            </td>
            <td class="title" style="text-align: right;">
                资金利用率
            </td>
            <td class="title" style="text-align: right;">
                胜率
            </td>
            <td class="title" style="text-align: right;">
                涨幅
            </td>
            <td class="title" style="text-align: right;">
                周累计盈亏
            </td>
            <td class="title" style="text-align: right;">
                每笔盈利
            </td>
            <td class="title" style="text-align: right;">
                收益效率
            </td>
            <td class="title" style="text-align: right;">
                月累计
            </td>
            <td class="title" style="text-align: right;">
                周预期收益
            </td>
        </tr>
        @{
            double allRiskCount = 0;
            double allUtilization = 0;
            double allWinRate = 0;
            double allRaiseRate = 0;
            double allAvgBillBenefit = 0;
            double allYield = 0;
            double monthProfit = 0;
            double weekProfit = 0;
            double weekExperted = 0;
        }
        @foreach (Benefit.Models.View.OperatorDayChange change in Model.OperatorDayChange)
        {

            allRiskCount += change.RiskCount;
            allUtilization += change.Utilization;
            allWinRate += change.WinRate;
            allRaiseRate += change.RaiseRate;
            allAvgBillBenefit += change.AvgBillBenefit;
            allYield += change.Yield;
             
            <tr>
                <td style="text-align: left; padding-left: 10px;">
                    @change.Operator.UName
                </td>
                <td style="text-align: right;">
                    @change.RiskCount
                </td>
                <td style="text-align: right;">
                    @change.Utilization
                </td>
                <td style="text-align: right;">
                    @change.WinRate
                </td>
                <td style="text-align: right;">
                    @change.RaiseRate
                </td>
                <td style="text-align: right;">
                    @foreach (Benefit.Models.View.OperatorWeekSum c in Model.OperatorWeekSum)
                    {
                        if (c.OperatorId == change.OperatorId)
                        {
                        <span>@string.Format("{0:N2}", c.Profit)</span>
                         weekProfit += c.Profit;
                         break;
                        }
                    }
                </td>
                <td style="text-align: right;">
                    @string.Format("{0:N2}", change.AvgBillBenefit)
                </td>
                <td style="text-align: right;">
                    @change.Yield
                </td>
                <td style="text-align: right;">
                    @foreach (Benefit.Models.View.OperatorMonthSum c in Model.OperatorMonthSum)
                    {
                        if (c.OperatorId == change.OperatorId)
                        {
                        <span>@string.Format("{0:N2}", c.Profit)</span>
                         monthProfit += c.Profit;
                         break;
                        }
                    }
                </td>
                <td style="text-align: right;" class="leftyes">
                    @foreach (Benefit.Models.View.OperatorWeekExpected c in Model.OperatorWeekExpected)
                    {
                        if (c.OperatorId == change.OperatorId)
                        {
                        <span>@string.Format("{0:N2}", c.DayCount)</span>
                         weekExperted += c.DayCount;
                         break;
                        }
                    }
                </td>
            </tr>
        }
        <tr>
            <td style="text-align: left; padding-left: 10px;" class="bottomyes">
                总计
            </td>
            <td style="text-align: right;" class="bottomyes">
                @allRiskCount
            </td>
            <td style="text-align: right;" class="bottomyes">
                @allUtilization
            </td>
            <td style="text-align: right;" class="bottomyes">
                @allWinRate
            </td>
            <td style="text-align: right;" class="bottomyes">
                @allRaiseRate
            </td>
            <td style="text-align: right;" class="bottomyes">
                @string.Format("{0:N2}", weekProfit)
            </td>
            <td style="text-align: right;" class="bottomyes">
                @string.Format("{0:N2}", allAvgBillBenefit)
            </td>
            <td style="text-align: right;" class="bottomyes">
                @allYield
            </td>
            <td style="text-align: right;" class="bottomyes">
                @string.Format("{0:N2}", monthProfit)
            </td>
            <td style="text-align: right;" class="bottomyes leftyes">
                @string.Format("{0:N2}", weekExperted)
            </td>
        </tr>
    </table>
    <div style="height: 15px; line-height: 15px;">
    </div>
    <div style="width: 60%; background-repeat: no-repeat; float: left; text-align: left;">
        <img src="/content/images/jiaoyigaikuang.png" />
    </div>
    <table style="width: 100%;" class="list" cellspacing="0" cellpadding="0">
        <tr>
            <td class="title" style="width: 10%;">
                参数
            </td>
            <td class="title" style="width: 40%;">
                值
            </td>
            <td class="title" style="width: 10%;">
                参数
            </td>
            <td class="title" style="width: 40%;">
                值
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(1)">
            <td>
                <div style="float: left; text-align: left; width: 100%;">
                    平仓盈亏</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div class="div1" style="float: right; text-align: right; width: 100%;">
                    @string.Format("{0:N2}", Model.GroupDayChange.Profit)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table1">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7"
                        onclick="fsa(1)">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", Model.GroupDayChange.Profit)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupFiveDayAvg.Profit)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgMonth.Profit)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgYear.Profit)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.CompanyAvgDay.Profit)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupDayAvg.Profit)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                </div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupWeekSum.Profit)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupMonthSum.Profit)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupYearSum.Profit)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    手续费</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="leftyes">
                <div style="float: right; text-align: right; width: 100%;" class="div1">
                    @string.Format("{0:N2}", Model.GroupDayChange.Free)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table1">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", Model.GroupDayChange.Free)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupFiveDayAvg.Free)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgMonth.Free)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgYear.Free)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.CompanyAvgDay.Free)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupDayAvg.Free)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                </div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupWeekSum.Free)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupMonthSum.Free)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupYearSum.Free)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(2)">
            <td>
                <div style="float: left;">
                    净利润</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div class="div2" style="float: right; text-align: right; width: 100%;">
                    @string.Format("{0:N2}", Model.GroupDayChange.DayCount)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table2">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", Model.GroupDayChange.DayCount)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupFiveDayAvg.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgMonth.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgYear.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.CompanyAvgDay.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupDayAvg.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                </div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupWeekSum.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupMonthSum.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupYearSum.DayCount)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    交易笔数</div>
            </td>
            <td class="leftyes" style="padding: 1px 1px 1px 1px;">
                <div style="float: right; text-align: right; width: 100%;" class="div2">
                    @Model.GroupDayChange.BillCount</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table2">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @Model.GroupDayChange.BillCount</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupFiveDayAvg.BillCount</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupAvgMonth.BillCount</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupAvgYear.BillCount</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.CompanyAvgDay.BillCount</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupDayAvg.BillCount</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                </div>
                                <div style="font-size: 8pt;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupWeekSum.BillCount</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupMonthSum.BillCount</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupYearSum.BillCount</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(3)">
            <td>
                <div style="float: left;">
                    平均持仓时长</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div class="div3" style="float: right; text-align: right; width: 100%;">
                    @Model.GroupDayChange.AvgPostionTime</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table3">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @Model.GroupDayChange.AvgPostionTime</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupFiveDayAvg.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupAvgMonth.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupAvgYear.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.CompanyAvgDay.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupDayAvg.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                </div>
                                <div style="font-size: 8pt;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupWeekSum.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupMonthSum.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupYearSum.AvgPostionTime</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    最大回撤</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="leftyes">
                <div class="div3" style="float: right; text-align: right; width: 100%;">
                    @string.Format("{0:N2}", Model.GroupDayChange.MaxReturn)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table3">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", Model.GroupDayChange.MaxReturn)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupFiveDayAvg.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgMonth.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgYear.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.CompanyAvgDay.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupDayAvg.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                </div>
                                <div style="font-size: 8pt;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupWeekSum.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupMonthSum.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupYearSum.MaxReturn)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(4)">
            <td>
                <div style="float: left;">
                    总亏损</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;">
                <div class="div4" style="float: right; text-align: right; width: 100%;">
                    @string.Format("{0:N2}", Model.GroupDayChange.SumLost)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table4">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", Model.GroupDayChange.SumLost)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupFiveDayAvg.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgMonth.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgYear.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.CompanyAvgDay.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupDayAvg.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                </div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupWeekSum.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupMonthSum.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupYearSum.SumLost)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td>
                <div style="float: left;">
                    总盈利</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="leftyes">
                <div class="div4" style="float: right; text-align: right; width: 100%;">
                    @string.Format("{0:N2}", Model.GroupDayChange.SumWin)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table4">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", Model.GroupDayChange.SumWin)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupFiveDayAvg.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgMonth.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgYear.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.CompanyAvgDay.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupDayAvg.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                </div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupWeekSum.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupMonthSum.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupYearSum.SumWin)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
        <tr class="detailsold" onclick="fee(5)">
            <td class="bottomyes">
                <div style="float: left;">
                    保证金占用</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="bottomyes">
                <div class="div5" style="float: right; text-align: right; width: 100%;">
                    @string.Format("{0:N2}", Model.GroupDayChange.UsedMargin)</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table5">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @string.Format("{0:N2}", Model.GroupDayChange.UsedMargin)</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupFiveDayAvg.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgMonth.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupAvgYear.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.CompanyAvgDay.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupDayAvg.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                </div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupWeekSum.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupMonthSum.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @string.Format("{0:N2}", Model.GroupYearSum.UsedMargin)</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
            <td class="bottomyes">
                <div style="float: left;">
                    超出止损次数</div>
            </td>
            <td style="padding: 1px 1px 1px 1px;" class="leftyes bottomyes">
                <div class="div5" style="float: right; text-align: right; width: 100%;">
                    @Model.GroupDayChange.OverStopLoss</div>
                <div style="width: 100%; display: none; padding: 1px 1px 1px 1px;" class="table5">
                    <table cellspacing="0" cellpadding="0" class="list2" style="width: 100%; background-color: #f5f7c7">
                        <tr>
                            <td style="text-align: left; width: 25%;" rowspan="4">
                                <div class="raise">
                                    @Model.GroupDayChange.OverStopLoss</div>
                                <div style="color: #535985">
                                    今日
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupFiveDayAvg.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    五日均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupAvgMonth.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    月均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; width: 25%; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupAvgYear.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    年均值</div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.CompanyAvgDay.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    公司均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupDayAvg.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    小组均值</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                </div>
                                <div style="height: 3px; line-height: 3px;">
                                    &nbsp;
                                </div>
                                <div style="font-size: 8pt;">
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupWeekSum.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    周累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupMonthSum.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    月累计</div>
                            </td>
                            <td style="text-align: left; padding-left: 10px; background-color: #f5f7c7">
                                <div>
                                    @Model.GroupYearSum.OverStopLoss</div>
                                <div style="font-size: 8pt;">
                                    年累计</div>
                            </td>
                        </tr>
                    </table>
                </div>
            </td>
        </tr>
    </table>
    <div style="height: 5px; line-height: 5px;">
    </div>
</div>
@MvcHtmlString.Create(Model.JS)
<script type="text/javascript" src="/Scripts/jquery-ui-1.8.11.min.js"></script>
<script type="text/javascript">
    GroupDayDiffBar();
    GroupBar();
    $(document).ready(function () {
        $("#myshowdiv").draggable();
    }
     );

    function fff() {
        $(".basehiddendiv").toggle();
        $(".aew").toggle();
        //    $(".detailsold").removeClass("detailsold").addClass("detailsoldclick");
    }

    function fsa(c) {
        var offset = $("#fs").offset();
        if (c == 1) {
            $("#myshowdiv").css("left", offset.left + 5);
            $("#myshowdiv").css("top", offset.top - 175);
        } else {
            $("#myshowdiv").css("left", offset.left - 545);
            $("#myshowdiv").css("top", offset.top - 175);
        }
        $("#myshowdiv").toggle();

    }
    function fee(id) {
        $(".div" + id).toggle();
        $(".table" + id).toggle();
    }
</script>
